#ifndef BUYEVENT_H_
#define BUYEVENT_H_

#include "Request.h"

class BuyEvent : public Request
{
protected:
	int numOfUnits;

public:
	static const eEvents type = buy;
	double const _price;

	BuyEvent();
	BuyEvent(const Poco::DateTime * const  _date, int numUnits, int userId, ass2::eEnergy eType, double price);
	virtual int compareTo(Events &other) const;
	virtual int getAmount();
	virtual bool setAmount(int newAmount);
	virtual eEvents getType() const;
	virtual ~BuyEvent();
};

#endif /*BUYEVENT_H_*/
